Content-adaptive pixel processing systems, methods and apparatus

ABSTRACT

Embodiments include methods and systems for context-adaptive pixel processing based, in part, on a respective weighting-value for each pixel or a group of pixels. The weighting-values provide an indication as to which pixels are more pertinent to pixel processing computations. Computational resources and effort can be focused on pixels with higher weights, which are generally more pertinent for certain pixel processing determinations.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of prior U.S. Non-Provisional patent application Ser. No. 14/045,158, filed Oct. 3, 2013, which is a continuation of prior U.S. Non-Provisional patent application Ser. No. 13/160,457, filed Jun. 14, 2011 which issued as U.S. Pat. No. 8,553,943 on Oct. 8, 2013. Each of the foregoing applications is hereby expressly incorporated by reference in its entirety. Furthermore, any and all priority claims identified in the Application Data Sheet, or any correction thereto, are hereby incorporated by reference under 37 C.F.R. §1.57.

BACKGROUND

1. Field

The present embodiments relate to machine vision, and in particular, to content-adaptive pixel processing systems, method and apparatus flow.

2. Background

A wide range of electronic devices, including mobile wireless communication devices, personal digital assistants (PDAs), laptop computers, desktop computers, digital cameras, digital recording devices, and the like, employ machine vision techniques to provide versatile imaging capabilities. These capabilities may include functions that assist users in recognizing landmarks, identifying friends and/or strangers, and a variety of other tasks.

Augmented reality functions may also identify motion of one or more objects within an image. Optical flow is a known method for motion tracking. Rather than first trying to recognize an object from raw image pixel data and then track the motion of the object among a sequence of image frames, optical flow determination instead tracks the motion of features from raw image pixel data. There are, however, a number of issues, such as computational complexity, that make it difficult to implement known optical flow determination techniques on a mobile platform.

SUMMARY

Various embodiments of systems, methods and devices within the scope of the appended claims each have several aspects, no single one of which is solely responsible for the desirable attributes described herein. Without limiting the scope of the appended claims, some prominent features are described herein. After considering this discussion, and particularly after reading the section entitled “Detailed Description” one will understand how the features of various embodiments are used to contextually adapt the processing of pixels from a sequence of image frames, performed on at least one computer processor.

One aspect of the disclosure is a method of determining pixel displacement between frames. The method includes determining a respective weighting-value for each of a first plurality of pixels. Each weighting-value is based at least in part on the relationship of an attribute of a particular pixel with the corresponding attributes of other pixels near the particular pixel. The method further includes determining an optical flow indicator of pixel displacement between two frames based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.

Another aspect of the disclosure is a computer program product for determining pixel displacement between frames that when executed cause an apparatus to determine a respective weighting-value for each of a first plurality of pixels. Each weighting-value is based at least in part on the relationship of an attribute of a particular pixel with the corresponding attributes of other pixels near the particular pixel. The instructions further cause the apparatus to determine an optical flow indicator of pixel displacement between two frames based at least in part upon the weighting-value of at least one pixel.

Another aspect of the disclosure is an apparatus configured to determine pixel displacement between frames comprising: means for determining a respective weighting-value for each of a first plurality of pixels, wherein each weighting-value is based at least in part on the relationship of an attribute of a particular pixel with the corresponding attributes of other pixels near the particular pixel; and means for determining an optical flow indicator of pixel displacement between two frames based at least in part upon the weighting-value of at least one pixel.

Another aspect of the disclosure is an apparatus configured to determine pixel displacement between frames comprising: a memory; and a processor configured to: determine a respective weighting-value for each of a first plurality of pixels, wherein each weighting-value is based at least in part on the relationship of an attribute of a particular pixel with the corresponding attributes of other pixels near the particular pixel; and determine an optical flow indicator of pixel displacement between two frames based at least in part upon the weighting-value of at least one pixel.

BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which features of the present disclosure can be understood in detail, a more particular description, briefly summarized above, may be had by reference to aspects, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only certain typical aspects of this disclosure and are therefore not to be considered limiting of its scope, for the description may admit to other equally effective aspects.

FIG. 1 is a generalized block diagram depicting a mobile device in relation to a server, database, and network transmission system, where one or more of the devices implement certain of the present embodiments.

FIG. 2 is a block diagram of the mobile device's various components which certain imaging applications associated with some of the present embodiments may employ.

FIG. 3A illustrates one possible set of hue-based quantization levels for a 6×6 pixel block.

FIG. 3B illustrates one possible set of hue-based quantization levels for a 6×6 pixel block.

FIG. 4 is a flowchart of an implementation of a method of determining optical flow.

FIG. 5 is a flowchart of an implementation of a method of determining optical flow.

FIG. 6 is a flowchart of an implementation of a method of determining optical flow.

FIG. 7 is a block diagram of a of an example access terminal.

In accordance with common practice the various features illustrated in the drawings may not be drawn to scale. Accordingly, the dimensions of the various features may be arbitrarily expanded or reduced for clarity. In addition, some of the drawings may not depict all of the components of a given system, method or device. Finally, like reference numerals may be used to denote like features throughout the specification and figures.

DETAILED DESCRIPTION

Implementations disclosed herein provide systems, methods and apparatus configured to provide optical flow determinations for augmented and mediated reality applications on mobile platforms. Generally, augmented reality is a term for a live direct and/or indirect view of a real-world environment whose elements are supplemented by computer-generated sensory inputs, such as audible, visual and/or tactile features. Augmented reality is a subset of mediated reality, in which a real-world image is modified by adding and/or simplifying elements of the image using computer-based techniques. For the sake of convenience and brevity, the terms “augmented reality” and “mediated reality” will be used interchangeably in the description provided below. In some applications the use of mediated reality techniques allows information about the environment accessible to a user to become interactive.

Object motion tracking is a useful tool for augmented reality applications. Optical flow is a known method for motion tracking. Rather than first trying to recognize an object from raw image pixel data and then track the motion of the object among a sequence of image frames, optical flow determination instead tracks the motion of features from raw image pixel data. However, motion tracking using optical flow determination techniques is computationally expensive, thus making known optical flow determination techniques impractical for implementation on many current mobile platforms. The present embodiments contemplate modifying optical flow determination techniques so as to provide for content-adaptive optical flow determination.

Some embodiments relate to a method or system for providing optical flow determinations from a sequence of image frames, performed on at least one computer processor. According to examples of the method, weighting values associated with corresponding portions of an image may be generated. In some implementations, each weighting value represents the information value of one or more pixels. Pixels that have relatively low information value are deemphasized and pixels that have relatively high information value are emphasized in optical flow computations.

The amount of information provided by a pixel may be based on a determination of the context that the pixel provides within an image relative to the neighboring pixels. For example, in one implementation, a pixel that is surrounded by highly structured and/or organized pixel neighbors may be considered a pixel with a relatively high information value. Such a pixel is assumed to belong to a discernable feature, whose motion can be tracked within a sequence of image frames. On the other hand, a pixel surrounded by uniform or pseudo-random cluster of pixel neighbors may be considered a pixel with a relatively low information value. Such a pixel is assumed not to belong to a feature that is easily discernible within the image.

In another example, the weighting values may also be a function of dispersion. Dispersion generally refers to the separation of similar pixels from one another in an image region. Dispersion is lower where similar pixels reside near one another. Dispersion is higher where many intervening dissimilar pixels separate the similar pixels. One may also define dispersion as “high” when the pixels are so similar that no distinguishable groups can be said to exist. In turn, such pixels may be categorized as having low information values. Note that similar pixels may be “dispersed” as a whole, even if individual similar pixels reside beside one another in widely separated “clumps” or groups in the image. A “dispersion value” may indicate the degree of dispersion and provide a basis for determining the information value of one or more pixels.

In some implementations, low information value pixels are deemphasized in optical flow determinations based on the respective weighting values determined. One skilled in the art will appreciate that the weighting values referred to are with regard to the degree of information conveyed by one or more pixels, and that an actual implementation may represent a threshold or a range in a variety of forms (such as an inverse, or range). Thus, as described herein “exceeding a threshold” indicates that a sufficient amount of information is present, regardless of whatever particular implementation is employed to describe that condition. Various implementations of the optical flow determination methods may be useful, for example, in a cellular telephone that is performing motion tracking on a sequence of captured image frames. By appropriately weighting portions of the image that have low information values, the system can deemphasize those portions from an optical flow determination process. Other regions, such as regions of relatively high information value pixels may be emphasized. This method may save computational resources by reducing the number and/or complexity of optical flow computations related to pixels that are unlikely to provide useful information.

In the following description, specific details are given to provide a thorough understanding of the examples. However, it will be understood by one of ordinary skill in the art that the examples may be practiced without these specific details. For example, electrical components/devices may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, such components, other structures and techniques may be shown in detail to further explain the examples.

It is also noted that the examples may be described as a process, which is depicted as a flowchart, a flow diagram, a finite state diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, or concurrently, and the process can be repeated. In addition, the order of the operations may be re-arranged. A process is terminated when its operations are completed. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a software function, its termination corresponds to a return of the function to the calling function or the main function.

Those of skill in the art will understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.

Various aspects of embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure one skilled in the art should appreciate that an aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method may be practiced using any number of the aspects set forth herein. In addition, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to or other than one or more of the aspects set forth herein.

As noted above, optical flow is a known method for motion tracking. Rather than trying to first recognize an object from raw image pixel data and then track the motion of the object among a sequence of images, optical flow determination instead tracks the motion of features from raw image pixel data. Optical flow techniques have a number of uses, such as determining the disparity of stereo vision in 3D imaging. A method of optical flow determination known as the total variation method with L1 norm regularization (TV-L1) can be implemented to provide real-time performance using a modern desktop graphics processor unit (GPU). There are, however, a number of issues that make it difficult to implement the TV-L1 method, as well as other optical flow techniques, on a mobile platform.

The TV-L1 method can be formulated according to the following cost-function:

$\begin{matrix} {\min\limits_{u}\left\{ {{\int_{\Omega}^{\;}{{{\nabla u}}\ {\Omega}}} + {\lambda {\int_{\Omega}^{\;}{{{{I_{1}\left( {x + {u(x)}} \right)} - {I_{0}(x)}}}\ {\Omega}}}}} \right\}} & (1) \end{matrix}$

The terms I₀ and I₁ are first and second consecutive image frames, respectively. The term u(x)=(u1(x), u2(x))^(T) is the two-dimensional displacement field and 2 is a weighting parameter between the first and the second terms in the cost function. The first integral term within equation (1) is a smoothing term that penalizes high variation in u(x) to obtain smooth displacement fields between sequential images. The second integral term within equation (1) is a fidelity term. The fidelity term is formulated under the assumption that the intensity values in the second image, I₁(x+u(x)), do not vary substantially as compared to the first image, I₀(x). With additional local linearization and convex condition, the equation (1) can be solved iteratively.

The TV-L1 method, however, has a number of problems that make it impractical to implement on a mobile platform with limited processing resources. First, the TV-L1 method heavily regularizes motion discontinuities so that the method has difficulties processing relatively large motion fields. To compensate for the heavy regulation a “coarse-to-fine” image pyramid is typically used. Although the coarse-to-fine approach alleviates the constraint on relatively large motion, two additional problems are created. First, the course-to-fine image pyramid adds significant computational cost because computations have to be repeated on every level of the image pyramid. Second, the course-to-fine image pyramid effectively converts the original convex method into a non-convex method. Those skilled in the art will appreciate that a convex method is typically defined by a solution that will converge with iterative processing. On the other hand, for a non-convex method, while convergence may occur, it is less certain that convergence will occur after iterative processing.

Additionally, the TV-L1 method does not work well on poorly textured regions such as a uniform or pseudo-random cluster of pixels, where matching cannot be performed reliably. For example, it is difficult to reliably match pixels between frames of features such as tree leaves swaying with the wind. Conventional solutions rely on strong regularization to propagate the motion from structured into the unstructured regions. Finally, the magnitude of a computed flow using the TV-L1 method may converge whereas the direction of the flow vectors may not, leaving the results useful for object segmentation, but not useful for motion tracking or 3D reconstruction.

FIG. 1 depicts a high-level block diagram of a communications system 100 comprising a mobile device 101 in relation to a server 102, database 103, and network 104, such as a cellular network. Mobile device 101 may comprise a cell phone, laptop, personal digital assistant, or the like. Mobile device 101 may be in communication with server 102, which is itself in communication with a database 103. Server 102 may be located at a cellular base station or may be located on a local network server or router. Database 103 may similarly be located inside server 102, or at a separate location. Mobile device 101 may comprise a camera or include other means for receiving images, such as a USB, WI-FI, or Bluetooth connection. A plurality of applications may be available to the user on mobile device 101. These applications may include messaging services, image and video capture applications, and other common applications known to one skilled in the art. Some of the applications on mobile device 101 may operate on images or video received from a remote location, or operate upon images generated locally by mobile device's 101 camera. In some embodiments, database 103 may comprise an image/video storage device, and mobile device 101 may transmit and/or receive images via server 102 to and/or from database 103. These images may be generated or used by the applications operating on mobile device 101.

As mentioned above, optical flow methods may be used to track motion within a sequence of images. In some embodiments, database 103 may comprise a collection of features used to identify objects and/or features within images whose motion may be tracked. When an application on the mobile device 101 attempts to track motion within a sequence of images, the mobile device 101 may retrieve features from database 103 in order to apply the features as part of a motion tracking process. Alternatively, the features and other commonly recognized patterns may be stored locally on the mobile device 101. Server 102 may also be in communication with the network 104 and receive images or features remotely from the network. Thus, either mobile device 101 or database 103 may contain images or features stored for recognition, which may in turn be used to aid motion tracking methods.

Although FIG. 1 depicts a greatly simplified mobile system, one skilled in the art will readily recognize that the present embodiments may also apply to any imaging system. A desktop system, comprising local image storage, for example, may also implement many of the present embodiments as part of locally running optical flow determination processes.

FIG. 2 depicts a block diagram of various components of the mobile device 101 which may be employed in the imaging applications of some embodiments. The mobile device 101 may comprise an image capturing system 201, which captures images via lens 200. These images may be stored in an image buffer 205, which may comprise RAM, SRAM, dynamic or static memory as are known in the art. Alternatively, images or features may be received via connector 206, which may comprise a firewire, USB, IR transceiver, Bluetooth interface, or the like. These images or features may be received, for example, when another user transmits them from another device, or when the user of mobile device 101 connects to a local network or storage device, such as a desktop computer.

Mobile device 101 may also comprise a modem 204 for transmitting or receiving information, including images and optical flow data via an antenna 208 or connector 207. Antenna 208 may be a wireless antenna used for connecting to a WI-FI, cellular network, or the like. Once optical flow determinations have been made, the user may upload them via modem 204 to database 103. Alternatively, the optical flow determinations may be stored locally and used locally.

The image capture system 201 may comprise a stand-alone hardware, software or firmware module. However, in some embodiments the image capture system may be integrated into the processor 202 as depicted in FIG. 2, as a component in a processor, or software running on the processor 202. The image capture system operates lens 200 so as to generate an image. Processor 202 may be a general purpose processing unit or a processor specially designed for imaging applications.

Processor 202 may comprise an optical flow determination module 203 which may itself comprise software running on the processor 202, a dedicated component within a processor or standalone hardware, software, or firmware and/or a combination thereof. The optical flow determination module 203 may implement a modified content-adaptive TV-L1 method as described below. The optical flow determination module 203 may comprise software, firmware, or hardware designed to perform one or more additional optical flow processes. As such, the optical flow determination module 203 may be able to select among various optical flow determination processes given a particular set of circumstances. One skilled in the art will readily recognize alternative applications of the present embodiments to other optical flow determination processes.

Implementations of the present invention include a content-adaptive, total variation (CA-TV) method that, in some implementations, allows optical flow computations to converge more efficiently and accurately than some implementations of the TV-L1 method including the “course-to-fine” image pyramid technique. More specifically, the CA-TV method disclosed herein gives more weight on pixels that are surrounded by highly structured/organized pixel neighbors in the iteration process while de-emphasizing low-information pixels such as pixels surrounded by a uniform or a pseudo-random cluster. This information or content adaptive use of image pixels enables the method, in some implementations, to converge more accurately with a reduced number of iterations, thereby reducing computational complexity. In other words, by reducing the computations concerning low-information pixel clusters, computational speed may improve so that the method may be implementable on a mobile platform having limited computational resources.

Thus, in contrast to total variation methods previously available, such as the TV-L1 method discussed above, implementations of methods in accordance with aspects of the invention provide a respective weighting-value for each pixel or a group of pixels. The weighting-values provide an indication as to which pixels are more pertinent to optical flow computations. In turn, computational resources and effort is focused on pixels with higher weights, which are more pertinent to optical flow determinations. In other words, the weighting-values enable a scheme that discriminates between pixels that are more pertinent to optical flow computations and pixels that are less pertinent to optical flow computations.

Referring again to equation (1) provided above, all pixels have the same scaling factor, λ (i.e. weight), for the fidelity term in the conventional TV-L1 method, implying that all pixels contribute equally to the fidelity term in the optic flow computation. However, as recognized by aspects of the embodiments disclosed herein, not all pixels have the same significance in optical flow computations. A pixel cluster with almost uniform or pseudo-random distribution, in fact, contributes little because such a cluster cannot be matched reliably between sequential image frames. In accordance with aspects of the present invention, low information pixels are preferably de-emphasized in the optic flow computations whereas useful pixels are preferably emphasized. In turn, emphasizing and de-emphasizing various pixels in this way may encourage the method of solving the cost-function to converge more efficiently and accurately. Because information level or signal strength of an image is an important factor, the content-adaptive weighting of the fidelity term effectively increases the signal to noise ratio of the computation, leading to a potentially fast and reliable solution in the iterative process of solving equation (1).

In accordance with some implementations, a content-adaptive weighting term, λ(x), can be used to weight the fidelity term so that equation (1) becomes equation (2) as follows:

$\begin{matrix} {\min\limits_{u}\left\{ {{\int_{\Omega}^{\;}{{{\nabla u}}\ {\Omega}}} + {{\lambda (x)}{\int_{\Omega}^{\;}{{{{I_{1}\left( {x + {u(x)}} \right)} - {I_{0}(x)}}}\ {\Omega}}}}} \right\}} & (2) \end{matrix}$

In equation (2), the content-adaptive weighting value, λ(x), is a function of location variable x=(x₁,x₂) that measures the information content in the neighborhood of a pixel at the location. In a non-limiting example, the content-adaptive weighting value, λ(x), can be defined as the Fisher discrimination function that measures the informational/structural strength of the patch surrounding the pixel:

λ(x)=c*J(x)   (3)

In equation (3), the term c is a scaling constant and x is an element of Z, the set of all N locations of the neighborhood of a pixel. Suppose Z is classified into C classes. In a non-limiting example, the number of classes, C, represents the number of different colors obtained as result of color quantization. In one possible implementation m_(i) represents the mean of the N_(i) data points of class Z_(i) and the following relationships can be defined.

$\begin{matrix} {m = {\frac{1}{N}{\sum\limits_{x \in Z}^{\;}\; x}}} & (4) \\ {m_{i} = {\frac{1}{N_{i}}{\sum\limits_{x_{i} \in Z_{i}}^{\;}x}}} & (5) \\ {S_{T} = {\sum\limits_{x \in Z}^{\;}{{x - m}}^{2}}} & (6) \\ {S_{W} = {\sum\limits_{i = 1}^{C}\; {\sum\limits_{x \in Z_{i}}^{\;}{{x - m_{i}}}^{2}}}} & (7) \\ {{J(x)} = \frac{S_{T} - S_{W}}{S_{W}}} & (8) \end{matrix}$

Equations (3) to (8) can be used to discriminate between orderly and diffused local patterns of pixels. Some examples are shown in FIGS. 3A and 3B. More specifically, FIG. 3A illustrates, as one possible example, a 6×6 image block 301 which contains 36 pixels. In one non limiting example, pixels falling within a given quantization range of the possible hues will be assigned an associated quantization level, or class ID. One skilled in the art will appreciate that there are numerous means for associating pixels with a quantization value, such as software code configured to compare the pixel value with a range. Thus, for example, the pixels of FIG. 3A may be grouped into three classes as indicated by an “X”, “O” and “+”, and representing red, blue and green, respectively. These three regions are relatively “homogenous” in the sense that the pixels of a given quantization level tend to reside near one another, i.e. the “X” in the upper left, the “O” in the lower left, and the “+” to the right. FIG. 3B, in contrast, illustrates a pixel block having the same dimensions, but composing a “dispersed” collection of pixels. Here pixels of a given quantization class are not necessarily located near one another within the block. As mentioned, although FIGS. 3A and 3B refer to color quantization, one skilled in the art will appreciate that there are numerous alternative pixel parameters which may be quantized.

Moreover, those skilled in the art will appreciate that the content-adaptive modification made to convert equation (1) to equation (2) may be applied to other optical flow determination methods. For example, the content-adaptive weighting value, λ(x), can be used to modify the total variation method with L2 regularization (TV-L2) to produce equation (9) as follows:

$\begin{matrix} {\min\limits_{u}\left\{ {{\int_{\Omega}^{\;}{{{{\nabla u}}\ }^{2}{\Omega}}} + {{\lambda (x)}{\int_{\Omega}^{\;}{\left( {{I_{1}\left( {x + {u(x)}} \right)} - {I_{0}(x)}} \right)^{2}\ {\Omega}}}}} \right\}} & (9) \end{matrix}$

FIG. 4 is a flowchart of an implementation of a method of determining optical flow. In some implementations, the method is performed by a suitable combination of software, hardware and/or firmware included in an access terminal. As represented by block 4-1, the method includes determining a respective weighting value, λ(x), for each of a plurality of pixels in a first image frame, I₀. In one implementation, each weighting value is determined using equations (3) to (8). In another implementation, the method include determining a respective weighting value for each of a plurality of sub-groups of two or pixels in order to further reduce the computational complexity of the method. As represented by block 4-2, the method includes determining an optical flow indicator based at least in part of the respective weighting values. In some implementations, the optical flow indicator serves as an indicator of the pixel displacement between the first frame, I₀, and a second frame, I₁.

FIG. 5 is a flowchart of an implementation of a method of determining optical flow. In some implementations, the method is performed by a suitable combination of software, hardware and/or firmware included in an access terminal. As represented by block 5-1, the method includes receiving a color image. As represented by block 5-2, the method includes performing color space quantization on the received color image to produce a color class map. As represented by block 5-3, the method includes computing a respective weighting value, λ(x), for each pixel in an image. In one implementation, each weighting value is determined using equations (3) to (8). In another implementation, the method include determining a respective weighting value for each of a plurality of sub-groups of two or more pixels in order to further reduce the computational complexity of the method. As represented by block 5-4, the method includes performing post-processing to smooth the respective weighting values. In one implementation, smoothing includes filtering outlying pixels or pixels representing discontinuities of a structure or feature defined by neighboring pixels.

FIG. 6 is a flowchart of an implementation of a method of determining optical flow. In some implementations, the method is performed by a suitable combination of software, hardware and/or firmware included in an access terminal. As represented by block 6-1, the method includes receiving video frames. As represented by block 6-2, the method includes initializing a first image frame and flow field. As represented by block 6-3, the method includes computing the flow field and fidelity term of a selected total variation method. As non-limiting examples, the TV-L1 or TV-L2 methods may be selected for determining optical flow. As represented by block 6-4, the method includes computing a weighted-cost, using for example equations (2) or (9), to determine optical flow. As represented by block 6-5, the method includes determining whether or not the cost function has converged for the current frame. If the cost function has not converged (no path from 6-5), the method includes looping back to the portion of the method represented by block 6-3 until convergence occurs. On the other hand, if the cost function has converged (yes path from 6-5), as represented by block 6-6, the method includes advancing to the next frame. As represented by block 6-7, the method includes computing weighting values for each pixel or sub-group or two or more pixels.

FIG. 7 is a block diagram of a of an example access terminal 700 in accordance with certain aspects of the present disclosure. Those skilled in the art will appreciate that an access terminal may have more components than the access terminal 700 illustrated in FIG. 7. The access terminal 700 includes only those components useful for describing some prominent features of implementations within the scope of the claims. The access terminal 700 includes a processor 701, a memory 702, an optical flow determining circuit 703, a buffer control circuit 704, a video buffer 705, a transmitting circuit 706 and an antenna 707. In one implementation the processor 701 is configured process computer program code of one or more applications stored in the memory. In one implementation, means for processing includes a processor. In one implementation, a storage means includes a memory. In one implementation, the optical flow determining circuit 703 is configured to determine optical flow using a content-adaptive optical flow determination method. In one implementation, means for determining optical flow includes an optical flow determining circuit 703. In one implementation, the buffer control circuit 704 is configured to determine when to allow the contents of the video buffer 705 to be passed to the optical flow determining circuit 703. In one implementation, means for controlling includes a buffer control circuit. In one implementation, means for buffering includes a buffer. In one implementation, the transmitting circuit 706 is configured to transmit packets to an access point via the antenna 707. In one implementation, means for transmitting includes a transmitter circuit.

Those having skill in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and process steps described in connection with the implementations disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. One skilled in the art will recognize that a portion, or a part, may comprise something less than or equal to a whole. For example, a portion of a collection of pixels may refer to a sub-collection of those pixels.

The various illustrative logical blocks, modules, and circuits described in connection with the implementations disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.

The steps of a method or process described in connection with the implementations disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of non-transitory storage medium known in the art. An exemplary computer-readable storage medium is coupled to the processor such the processor can read information from, and write information to, the computer-readable storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal, camera, or other device. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal, camera, or other device.

Headings are included herein for reference and to aid in locating various sections. These headings are not intended to limit the scope of the concepts described with respect thereto. Such concepts may have applicability throughout the entire specification.

Moreover, the word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

The previous description of the disclosed implementations is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these implementations will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other implementations without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the implementations shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein. 

What is claimed is:
 1. A method of context-adaptive pixel processing comprising: classifying, via an electronic device, a first plurality of pixels of a frame into one class of a plurality of classes; determining a respective weighting-value for each of the first plurality of pixels of the frame, wherein each weighting-value is based at least in part on a comparison of a classification of a particular one of the pixels with a classification of other pixels near the particular pixel; and smoothing one or more of the weighting-values.
 2. The method of claim 1, wherein smoothing the one or more weighting-values comprises reducing a weighting-value for a pixel based on an amount of variation in a two-dimensional displacement field for the pixel.
 3. The method of claim 1, wherein smoothing the one or more weighting-values comprises filtering pixels having a discontinuity with neighboring pixels for a feature included in the frame.
 4. The method of claim 1, wherein determining the respective weighting-value for the particular pixel comprises considering a group of pixels within a radius around the particular pixel for which the weighting-value is determined.
 5. The method of claim 1, further comprising processing the pixels based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 6. The method of claim 5, wherein processing the pixels comprises determining an optical flow indicator of pixel displacement between the frame and another frame based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 7. The method of claim 6, wherein determining the optical flow indicator comprises using a species of the total variation method.
 8. The method of claim 6, wherein determining the optical flow indicator is based on a cost function.
 9. The method of claim 1, wherein the classification indicates the relative amount of information pertaining to pixel processing provided by the particular pixel as compared to other near pixels.
 10. The method of claim 1, wherein the other pixels near the particular pixel include pixels adjacent the particular pixel.
 11. A computer program product for context-adaptive pixel processing between frames comprising a computer-readable medium having stored thereon instructions that when executed cause an apparatus to: classify a first plurality of pixels of a frame into one class of a plurality of classes; determine a respective weighting-value for each of a first plurality of pixels of the frame, wherein each weighting-value is based at least in part on a comparison of a classification of a particular one of the pixels with a classification of other pixels near the particular pixel; and smooth one or more of the weighting-values.
 12. The computer program product of claim 11, wherein smoothing the one or more weighting-values comprises reducing a weighting-value for a pixel based on an amount of variation in a two-dimensional displacement field for the pixel.
 13. The computer program product of claim 11, wherein smoothing the one or more weighting-values comprises filtering pixels having a discontinuity with neighboring pixels for a feature included in the frame.
 14. The computer program product of claim 13, wherein determining the respective weighting-value for a particular pixel comprises considering a group of pixels within a radius around the particular pixel for which the weighting-value is determined.
 15. The computer program product of claim 11, wherein the instructions further cause the apparatus to process the pixels based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 16. The computer program product of claim 15, wherein processing the pixels comprises determining an optical flow indicator of pixel displacement between the frame and another frame based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 17. The computer program product of claim 16, wherein determining the optical flow indicator using a species of the total variation method.
 18. The computer program product of claim 16, wherein determining the optical flow indicator is based on a cost function.
 19. The computer program product of claim 11, wherein the classification indicates the relative amount of information pertaining to pixel processing provided by the particular pixel as compared to other near pixels.
 20. The computer program product of claim 19, wherein the other pixels near the particular pixel include pixels adjacent the particular pixel.
 21. A content-adaptive image processing apparatus comprising: means for classifying a first plurality of pixels of a frame into one class of a plurality of classes; and means for determining a respective weighting-value for each of the first plurality of pixels of the frame, wherein each weighting-value is based at least in part on a comparison of a classification of a particular pixel with a classification of other pixels near the particular pixel and for smoothing one or more of the weighting-values.
 22. The apparatus of claim 25, wherein smoothing the one or more weighting-values comprises reducing a weighting-value for a pixel based on an amount of variation in a two-dimensional displacement field for the pixel.
 23. The apparatus of claim 25, wherein smoothing the one or more weighting-values comprises filtering pixels having a discontinuity with neighboring pixels for a feature included in the frame.
 24. A content-adaptive image processing apparatus comprising: a memory; and an image processor configured to: classify a first plurality of pixels of a frame into one class of a plurality of classes; determine a respective weighting-value for each of the first plurality of pixels of the frame, wherein each weighting-value is based at least in part on a comparison of a classification of a particular one of the pixels with a classification of other pixels near the particular pixel; and smooth one or more of the weighting-values.
 25. The apparatus of claim 24, wherein smoothing the one or more weighting-values comprises reducing a weighting-value for a pixel based on an amount of variation in a two-dimensional displacement field for the pixel.
 26. The apparatus of claim 24, wherein smoothing the one or more weighting-values comprises filtering pixels having a discontinuity with neighboring pixels for a feature included in the frame.
 27. The apparatus of claim 24, wherein determining the respective weighting-value for a particular pixel comprises considering a group of pixels within a radius around the particular pixel for which the weighting-value is determined.
 28. The apparatus of claim 24, wherein the image processor is further configured to process the pixels based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 29. The apparatus of claim 28, wherein processing the pixels comprises determining, via the image processor, an optical flow indicator of pixel displacement between the frame and another frame based at least in part upon the weighting-value of at least one pixel of the first plurality of pixels.
 30. The apparatus of claim 24, wherein the classification indicates the relative amount of information pertaining to pixel processing provided by the particular pixel as compared to other near pixels. 